﻿using System.Data.Linq.Mapping;

namespace Model
{   /// <summary>
    /// copyright:kklldog
    /// date:2011-08-29
    ///  qq:17014842
    /// </summary>
    [Table]
    public class dbSong 
    {
        private int _id;
        [Column(IsPrimaryKey=true,
            IsDbGenerated = true,
            DbType = "INT NOT NULL Identity",
            CanBeNull=false,
            AutoSync=AutoSync.OnInsert)]
        public int ID
        { get { return _id; } set { _id = value; } }

        private string _url;
        /// <summary>
        /// MP3 URL
        /// </summary>
        [Column]
        public string url
        { get { return this._url; } set { _url = value; } }

        private string _picture;
        /// <summary>
        /// 专辑封面URL
        /// </summary>
       [Column]
       public string picture
        { get { return this._picture; } set { _picture = value; } }

       private string _albumtitle;
        /// <summary>
        /// 专辑名
        /// </summary>
        [Column]
        public string albumtitle
       {
           get { return _albumtitle; }
           set { this._albumtitle = value; }
       }

        private string _title;
        /// <summary>
        /// 歌名
        /// </summary>
        [Column]
        public string title
        {
            get { return this._title; }
            set { _title = value; }
        }

        private string _artist;
        /// <summary>
        /// 歌手
        /// </summary>
        [Column]
        public string artist
        {
            get { return _artist; }
            set { this._artist = value; }
        }

        private int _channel;
         [Column]
        public int channel
        {
            get { return _channel; }
            set { this._channel = value; }
        }
       // [Column]
       // public string company
       //{ get; set; }

       //[Column]
       // public string rating_avg
       //{ get; set; }

       // [Column]
       //public string public_time
       //{ get; set; }

       //  [Column]
       //public string ssid
       //{ get; set; }

       //  [Column]
       //public string album
       //{ get; set; }

       //  [Column]
       //public string like
       //{
       //    get;
       //    set;
       //}

       //  [Column]
       //public string subtype
       //{ get; set; }

       //  [Column]
       //public string length
       //{ get; set; }
       //  [Column]
       //public string sid
       //{ get; set; }
       //  [Column]
       //public string aid
       //{ get; set; }


    }
}
